import http from 'utilMethods/http'

const request = 'http://report.wsn2019.club'

const user = {
  postUserLogin(params) {
    return http.post(`${request}/login`, params)
  },
  postUserPersonalInfo(params) {
    return http.post(`${request}/user/update`, params)
  },
  getUserInfo() {
    return http.get(`${request}/userinfo`)
  },
  // postRegisterProf(params) {
  //   return http.post(`${request}/register/prof`, params)
  // },
  // postRegisterStu(params) {
  //   return http.post(`${request}/register/student`, params)
  // },
  postRegister(params) {
    return http.post(`${request}/register`, params)
  },
  deleteUser(userId) {
    return http.delete(`${request}/deregister/` + userId)
  }
}

export default user